package com.itheima.tlias84.mapper;

import com.itheima.tlias84.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface StudentMapper {
    //1.新增学生信息
    int insertStudent(@Param("stu") Student student);
    //2.根据id删除学生信息
    int deleteStudentById(@Param("id") Integer id);
    //3.根据id修改学生信息
    int updateStudentById(@Param("s") Student student);
    //4.查询所有学生信息
    List<Student> selectAllStudents();
    //5.根据学生名字模糊搜索

}
